<table class="xsui-table xsui-table-striped xsui-table-hover xsui-table-bordered">
    <thead>
        <tr>
            <th>标题</th>
            <th>文件名</th>
            <th>类别</th>
            <th>大小</th>
            <th>扩展名</th>
            <th>类型</th>
            <th>排序</th>
            <th>状态</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <foreach name="list" item="vo">
        <tr data-key="{$vo.id}">
            <td>{$vo.title}</td>
            <td>
        <if condition="$vo['picture_url']">
            <a href="{$vo['picture_url']}" target="_blank"><img src="{$vo['picture_url']}" alt="{$vo['picture_url']}" style="width:16px; height:16px;" /></a>
        </if>
        <if condition="$vo['file_path']">
            <a href="{$vo.file_path}" target="_blank" title="{$vo.file_path}"><i class="fa fa-external-link fa-fw"></i></a>
        </if>        
        {$vo.file_name}
        </td>
        <td><a href="{:U('file_list','category_id='.$vo['category_id'])}">{$vo.category_name}</a></td>
        <td>{$vo.file_size}</td>
        <td>{$vo.file_ext}</td>
        <td>{$vo.file_type}</td>
        <td class="sort"><input type="text" value="{$vo.sort}" size="3" data-value="{$vo.sort}" data-url="{:U('change_sort','id='.$vo['id'].'&sort=varsort')}" /></td>
        <td>{$vo.status|sofn_get_state_text='user-state',###}</td>
        <td>{$vo.create_time}</td>
        <td>
            <ul class="xsui-operate-group">
                <li><a href="#" class="xsui-btn ui-state-default xsui-icon-right">操作<i class="fa fa-caret-square-o-down"></i></a>
                    <ul>
                        <li><a href="{:U('file_edit','id='.$vo['id'])}" class="xsui-lnk-edit-dialog" data-id="{$vo.id}" title="编辑 {$vo.title}"><i class="fa fa-edit fa-fw"></i>编辑</a></li>
                        <li><a href="{:U('file_delete','id='.$vo['id'])}" class="xsui-lnk-remove" data-id="{$vo.id}" title="删除 {$vo.title}"><i class="fa fa-remove fa-fw"></i>删除</a></li>
                    </ul>
                </li>
            </ul>
        </td>
        </tr>
    </foreach>
</tbody>
</table>
<div class="xsui-pagination">{$page}</div>